package engine.network.hostSide.mp;

import java.awt.Point;
import java.net.Socket;

import engine.network.hostSide.abstractClasses.HandlingThread;
import engine.network.hostSide.enums.SpectReq;

public class HINBSpectator extends HandlingThread{
	/* *********************************************************
	 * Attributes
	 * ********************************************************* */
	private Point _serverPlayer;
	private Point _networkPlayer;
	public boolean _running;
	/* *********************************************************
	 * Constructor(s)
	 * ********************************************************* */
	public HINBSpectator(Socket s) {
		super(s);
		_serverPlayer = new Point();
		_networkPlayer = new Point();
		_running = true;
		this.start();
	}
	
	/* *********************************************************
	 * Instance Methods
	 * ********************************************************* */
	public void setNewPoints(Point svrP, Point networkP){
		_serverPlayer = svrP;
		_networkPlayer = networkP;
		_out.println(SpectReq.REFRESH.label());
		_out.println(_serverPlayer.x);
		_out.println(_serverPlayer.y);
		_out.println(_networkPlayer.x);
		_out.println(_networkPlayer.y);
		_out.flush();
	}
	
	
	@Override
	public void run() {
		while(_running){
			
		}
		
	}
}
